<?php

namespace User\Model;

use Zend\Authentication\Storage;

class UserStorage extends Storage\Session {

    public function setRememberMe($rememberMe = 0, $time = 1209600) {
        if ($rememberMe == 1) {
            $this->session->getManager()->rememberMe($time);/* 14 days */
        }
    }

    public function forgetMe() {
        $this->session->getManager()->forgetMe();
    }
}